/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const goodRouter = {
  path: '/good',
  component: Layout,
  redirect: '/table/complex-table',
  name: 'good',
  meta: {
    title: '列表管理',
    icon: 'edit',
    roles: [ 'editor']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/goods/good-list'),
      name: 'good list',
      meta: { title: 'Good list',    roles: [ 'editor']}
    },
    {
      path: 'add',
      component: () => import('@/views/goods/good-add'),
      name: 'good add',
      meta: { title: 'Good add',    roles: [ 'editor']}
    },
  ]
}
export default goodRouter
